import axios from '@u/request';
// 获取商品列表
const getItems = (params = {}) => axios.get('/itemLists', {params})
// 获取商品详情
const getItemDetail = (params = {}) => axios.get('/itemDetail', {params})
// 新增商品
const addItem = (params = {}) => axios.post('/addItem', params)
// 修改商品
const updateItem = (params = {}) => axios.put('/updateItem', params)
// 删除商品
const delItem = (params = {}) => axios.delete('/delItem', {params})

export {
  getItems,
  getItemDetail,
  addItem,
  updateItem,
  delItem
}